<%@ page import="java.util.*"%>
<%@ page import="objects.*"%>
<%@ page import="Domain.UserClient.ButtonsFunctions"%>
<%@page import="Domain.DataManager"%>

<%
	DataManager dm = (DataManager) (session.getAttribute("dm"));
	ButtonsFunctions bf = (ButtonsFunctions) (session
			.getAttribute("bf"));

	if (dm == null || dm.getUserStatus() == DataManager.DISCONNECTED) {
		response.sendRedirect("Welcome.jsp");
	} else {
%>

<%
	Vector<String> vecOfNotifications = dm.getNotification();
	dm.emptyNotifications();
%>

<div>

<%
	if(vecOfNotifications.size() == 0)
		out.println("<b><br>There are no new notifications.</b>");
	else
	{
		for(int i = 0 ; i < vecOfNotifications.size(); i++)
		{
			int index = i+1;
			out.println("<br><b>" + index + ".</b><i> " + vecOfNotifications.elementAt(i) + "</i><br>");
		}
	}
%>

</div>

<%
	}
%>
